Component({
    properties: {
        imgarr:Array
    },
    data: {

    },
    methods: {
        //删除图片
        deleteimg(e){
            let index=e.currentTarget.dataset.index;
            this.triggerEvent('changimgindex',{index});
        },
        //预览图片
        prev(e){
            let index=e.currentTarget.dataset.index;
            this.triggerEvent('prvimg',{index})
        }
    }
});
